package com.training.food.pojo;

import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
@Getter
@Setter
@Data
@NoArgsConstructor
@EqualsAndHashCode
@Entity
@Table( name ="slaughter" )
public class Slaughter implements Serializable{
    @Id
    private Integer slaughterId;
    @Column(name = "username")
    private String username;
    @Column(name="farmId")
    private int farmId;
    @Column(name="inputTime")
    private Date inputTime;
    @Column(name="number")
    private int number;
    @Column(name="weight")
    private double weight;
    @Column(name="death")
    private int death;

    @Column(name="state")
    private String state;

    public Slaughter(String username, int farmId, Date inputTime, int number, double weight, int death, String state) {
        this.username = username;
        this.farmId = farmId;
        this.inputTime = inputTime;
        this.number = number;
        this.weight = weight;
        this.death = death;

        this.state = state;
    }


}
